-
Notifications
You must be signed in to change notification settings - Fork 1
Fix Xdebug Configuration #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Xdebug Configuration #1
Conversation
Dockerfile
Outdated
| rm -rf /tmp/php-spx | ||
|
|
||
| # Install and configure Xdebug | ||
| RUN pecl install xdebug && docker-php-ext-enable xdebug && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bang @AlexzPurewoko, mintol command enable ini dihapus soale redundan sama yang di deck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jadi tinggal pecl install xdebug gitu?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yoii, betul
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah aku butuhnya buat create file ini :
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
Kalau dilangsung seperti ini aman ngga ya @abdulhp ?
# Install and configure Xdebug
RUN pecl install xdebug && \
touch /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "zend_extension=xdebug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.client_host=172.20.0.1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.idekey=dicoding-debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
rm -rf /tmp/pearThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done bang
|
LGTM ❤️ |
Pull Request ini ditujukan untuk memperbaiki konfigurasi dari XDebug pada Dockerfile yang sebelumnya ada trouble di connection, menjadi bisa